import request from '@/utils/request'

// 查询salary列表
export function listSalary(query) {
  return request({
    url: '/mine/salary/list',
    method: 'post',
    data: query
  })
}

// 查询salary详细
export function getSalary(id) {
  return request({
    url: '/mine/salary/' + id,
    method: 'get'
  })
}

// 新增salary
export function addSalary(data) {
  return request({
    url: '/mine/salary',
    method: 'post',
    data: data
  })
}

// 修改salary
export function updateSalary(data) {
  return request({
    url: '/mine/salary',
    method: 'put',
    data: data
  })
}

// 删除salary
export function delSalary(id) {
  return request({
    url: '/mine/salary/' + id,
    method: 'delete'
  })
}
